<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmRecoverPasswordviaEmail">

        <!-- Băt đầu Recover Password Email -->
        <p:dialog header="Recover Password via Email"
                  id="dlgRecoverViaEmail"
                  widgetVar="wgRecoverViaEmail"
                  closable="false"
                  draggable="true"
                  modal="true"
                  showEffect="clip"
                  hideEffect="clip"
                  resizable="false">
            <h:panelGrid id="pnRecoverViaEmail" columns="2" cellspacing="5" >
                <p:inputText value="#{userBean.email}"/>

            </h:panelGrid>
            <f:facet name="footer">
                <p:commandButton
                    value="Sumbit"
                    actionListener="#{userBean.RecoverPassword}"
                    update=":growl"

                    oncomplete="LoginRequest(xhr, status, args)"
                    />
                <p:commandButton
                    value="Cancel"
                    onclick="wgRecoverViaEmail.hide();wgLogin.show();"
                    />
            </f:facet>
        </p:dialog>
    </h:form>
</html>
